VxText


Create a Text widget allowing titles and labels

Syntax

VxText object_name [-title title ] [-label label ] VtTextArgs

Description

Creates a VtText widget, allowing -title and -label options. Returns the widget name.

Parameters

-title
Creates a Form around the Text widget and attaches a Label above it. The Label is attached to the top side of the Form. The Text widget is attached to the left, right and bottom sides of the Form and also to the bottom side of the Label.

-label
Creates a Form around the Text widget and attaches a Label to the left side of it. The Label is attached to the top and bottom of the Form. The Text widget is attached to the right, top and bottom sides of the Form.

VtTextArgs
Any argument(s) legal for VtText.

Example

The following code produces a Text widget with a title.

set app [VtOpen text]

set form [VtFormDialog $app.form -title "VxText Demo" ]

VxText $form.text \
	-title "Some information about kumquats" \
	-value "Kumquat\n\nFrom the Chinese\
'kam' meaning 'gold' and 'kwat' meaning 'orange'\n
A small citrus fruit with a sweet spongy rind and slightly
acidic pulp. Also used to refer to the trees and shrubs of the
rue family which bear kumquats." \
        -columns 67 \
        -rows 8


VtShow $form
VtMainLoop

This code produces the following:

Notes

The widget name of the Form and the Label, if created, are available from VxGetVar under the variable names form and label, respectively.

VxGetVar $widgetName "form"
or
VxGetVar $widgetName "label"